﻿using System.Web.Mvc;

namespace RuTracker.MVC.Core.HtmlHelpers
{
    public static class ImageExtensions
    {
        public static MvcHtmlString Image(this HtmlHelper helper, string action, string controller)
        {
            var img = new TagBuilder("img");
            img.MergeAttribute("src", string.Format("/{0}/{1}", controller, action));
            return MvcHtmlString.Create(img.ToString());
        }
    }
}